// 定义一个数组，里面，只能包含，string或number

let mixArray: (string | number)[] = [1, 2, 'a', 'b'];

let arr: number | string[] = 123;

let mixArray2: (string | number | boolean)[] = [1, 2];
